package com.clip.util;

import java.util.ArrayList;
import java.util.List;

public class SplitIdUtils {

	public SplitIdUtils() {	}
	/**
	 * 切割传入的ID字串并返回一个数组
	 * @param pointIds
	 * @return
	 */
	public static List<String> splitIdFromMainPage(String pointIds){
		List<String> pointIdList=new ArrayList<String>();
		for(String id:baseSplit(pointIds,"_")){
			pointIdList.add(id);
		}
		return pointIdList;
	}
	
	public static String[] split(String obj){
		return baseSplit(obj, "_");
	}
	
	public static String[] splitPrintMailArray(String obj){
		return baseSplit(obj,",");
	}
	
	private static String[] baseSplit(String obj,String split){
		String[] arrayObj=new String[obj.length()];
		arrayObj=obj.split(split);
		return arrayObj;
	}
}
